package com.tj.test.sys.po;

import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;

public class PST {
    private int personid;
    private String account;
    private String personname;
    private String personidcard;
    private String pwd;
    private String phone;
    private String email;
    private String gender;
    private String education;
    private String nation;
    private int age;
    private String personremark;
    private java.sql.Date personcreate;
    private java.sql.Date personupdate;
    private String personopen;
    private java.sql.Date personapprove;
    private String qq;
    private String wechat;
    private int studentid;
    private String studentnumber;
    private int classid;
    private String studentspecialty;
    private String studentdept;
    private java.sql.Date studentintake;
    private java.sql.Date studentgraduate;
    private java.sql.Date studentupdate;
    private int teacherid;
    private String teachernumber;
    private java.sql.Date teacherentertime;
    private String teachercourse;
    private java.sql.Date teacherupdate;

    public int getPersonid() {
        return personid;
    }

    public void setPersonid(int personid) {
        this.personid = personid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPersonname() {
        return personname;
    }

    public void setPersonname(String personname) {
        this.personname = personname;
    }

    public String getPersonidcard() {
        return personidcard;
    }

    public void setPersonidcard(String personidcard) {
        this.personidcard = personidcard;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public int getAge() {
        return age;
    }

    public void setAge(String  age) {
            this.age=0;
    }

    public String getPersonremark() {
        return personremark;
    }

    public void setPersonremark(String personremark) {
        this.personremark = personremark;
    }

    public Date getPersoncreate() {
        return personcreate;
    }

    public void setPersoncreate(Date personcreate) {
        this.personcreate = personcreate;
    }

    public Date getPersonupdate() {
        return personupdate;
    }

    public void setPersonupdate(Date personupdate) {
        this.personupdate = personupdate;
    }

    public String getPersonopen() {
        return personopen;
    }

    public void setPersonopen(String personopen) {
        this.personopen = personopen;
    }

    public Date getPersonapprove() {
        return personapprove;
    }

    public void setPersonapprove(Date personapprove) {
        this.personapprove = personapprove;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public int getStudentid() {
        return studentid;
    }

    public void setStudentid(int studentid) {
        this.studentid = studentid;
    }

    public String getStudentnumber() {
        return studentnumber;
    }

    public void setStudentnumber(String studentnumber) {
        this.studentnumber = studentnumber;
    }

    public int getClassid() {
        return classid;
    }

    public void setClassid(int classid) {
        this.classid = classid;
    }

    public String getStudentspecialty() {
        return studentspecialty;
    }

    public void setStudentspecialty(String studentspecialty) {
        this.studentspecialty = studentspecialty;
    }

    public String getStudentdept() {
        return studentdept;
    }

    public void setStudentdept(String studentdept) {
        this.studentdept = studentdept;
    }

    public Date getStudentintake() {
        return studentintake;
    }

    public void setStudentintake(Date studentintake) {
        //获得一个时间格式的字符串
        String dateStr = "2016-12-31";
        //获得SimpleDateFormat类，我们转换为yyyy-MM-dd的时间格式
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
        try {
            //使用SimpleDateFormat的parse()方法生成Date
            java.util.Date date = sf.parse(dateStr);
            //打印Date
            System.out.println(date);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        this.studentintake = studentintake;
    }

    public Date getStudentgraduate() {
        return studentgraduate;
    }

    public void setStudentgraduate(Date studentgraduate) {
        //获得一个时间格式的字符串
        String dateStr = "2016-12-31";
        //获得SimpleDateFormat类，我们转换为yyyy-MM-dd的时间格式
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
        try {
            //使用SimpleDateFormat的parse()方法生成Date
            java.util.Date date = sf.parse(dateStr);
            //打印Date
            System.out.println(date);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        this.studentgraduate = studentgraduate;
    }

    public Date getStudentupdate() {
        return studentupdate;
    }

    public void setStudentupdate(Date studentupdate) {
        this.studentupdate = studentupdate;
    }

    public int getTeacherid() {
        return teacherid;
    }

    public void setTeacherid(int teacherid) {
        this.teacherid = teacherid;
    }

    public String getTeachernumber() {
        return teachernumber;
    }

    public void setTeachernumber(String teachernumber) {
        this.teachernumber = teachernumber;
    }

    public Date getTeacherentertime() {
        return teacherentertime;
    }

    public void setTeacherentertime(Date teacherentertime) {

        //获得一个时间格式的字符串
        String dateStr = "2016-12-31";
        //获得SimpleDateFormat类，我们转换为yyyy-MM-dd的时间格式
        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
        try {
            //使用SimpleDateFormat的parse()方法生成Date
            java.util.Date date = sf.parse(dateStr);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        this.teacherentertime = teacherentertime;}


    public String getTeachercourse() {
        return teachercourse;
    }

    public void setTeachercourse(String teachercourse) {
        this.teachercourse = teachercourse;
    }

    public Date getTeacherupdate() {
        return teacherupdate;
    }

    public void setTeacherupdate(Date teacherupdate) {
        this.teacherupdate = teacherupdate;
    }
}

